<?php


function consulta(){
			$sql="select * from tb_usuario where 1=1";
			
			$array = '';

			if(isset($_GET['email'])){
				$array=trim($_GET['email']);
				$sql.=" and email = '".$email."'";
			}
			if(isset($_GET['id'])){
				$array=trim($_GET['id']);
				$sql.=" and email = '".$id."'";
			}
			if(isset($_GET['nome'])){
				$array=trim($_GET['nome']);
				$sql.=" and nome LIKE '%".$nome."%'";
			}


			$conection=Conection::getConexao();
			$res=$conection->executeQuery($sql);
			$conection->close();

			return $res;
}
?>